package cn.qingyun.gis.modules.scenes.contant;

public enum ScenesStatus {
    /**
     * 场景类型枚举
     */
    HOTEL("酒店公寓"),
    MARKET("专业市场"),
    BUILD("楼宇"), // 楼宇分为 商业楼宇 + 商业综合体
    PARK("产业园区"),
    STREET("沿街商铺"),
    OTHER("其他"),
    BUSINESS("商务楼宇"),
    COMPLEX("商业综合体");

    private final String desc;

    ScenesStatus(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public static ScenesStatus fromDescription(String description) {
        for (ScenesStatus status : values()) {
            if (status.getDesc().equals(description)) {
                return status;
            }
        }
        throw new IllegalArgumentException("未知的状态描述：" + description);
    }
    public static boolean verifyName(String name){
        for (ScenesStatus status : values()) {
            if (status.getDesc().equals(name)){
                return true;
            }
        }
        return false;
    }
}
